<?php
require_once("../includes/Admin_notifications.class.php");


if(isset($_POST["requests"]))
{
$checked_array = $_POST["requests"];
}


for ($i = 0 ; $i < count($checked_array) ; $i++)
{
  $object = new Admin_notifications();
  $object->set_notification("request free time");
  $object->set_send_to($checked_array[$i]);
  $object->set_notification_link("sandy"); // sprint2
  $object->create();
}
header("Location: admin_home.php");
?>